package com.lhd.dao;

import com.lhd.po.Blog;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * Created by liuhandong on 2021/10/27.
 */
@Service
public interface BlogDao{
    
    List<Blog> findTop(Integer size);

    Integer save(Blog blog);

    Integer update(Blog blog);

    Blog findOne(Long id);

    void delete(Long id);

    Long count();

    List<Blog> findAll(Integer page);

    List<Blog> findAllByPage(HashMap map);

    Long countBlogByQuery(HashMap map);

    List<Long> getBlogIdsByTagId(Long tagId);

    Long getMaxBlogId();

    List<Long> getBlogIdsByTypeId(Long typeId);
}
